/**
 * @file MockApplicationSettings.cpp
 * This mock implementation of \a ApplicationSettings stores
 * in local variables all data that are made persistent by
 * real application
 */

#include "ApplicationSettings.h"

QString m_lastShowFile;
int m_defaultVolume = 100;
ApplicationSettings::Language m_language = ApplicationSettings::NATIVE;
QByteArray m_windowsSettings;
QByteArray m_windowsGeometry;


void ApplicationSettings::setLastShowFile(const QString &filePath)
{
   m_lastShowFile = filePath;
}

QString ApplicationSettings::lastShowFile()
{
   return m_lastShowFile;
}

void ApplicationSettings::setDefaultVolume(int volume)
{
   m_defaultVolume = volume;
}

int ApplicationSettings::defaultVolume()
{
   return m_defaultVolume;
}

void ApplicationSettings::setLanguage(Language language)
{
   m_language = language;
}

ApplicationSettings::Language ApplicationSettings::language()
{
   return m_language;
}

void ApplicationSettings::saveWindowSetting(const QByteArray windowSetting)
{
   m_windowsSettings = windowSetting;
}

void ApplicationSettings::saveWindowGeometry(const QByteArray windowGeometry)
{
   m_windowsGeometry = windowGeometry;
}

QByteArray ApplicationSettings::restoreWindowSetting()
{
   return m_windowsSettings;
}

QByteArray ApplicationSettings::restoreWindowGeometry()
{
   return m_windowsGeometry;
}
